<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>管理后台登录</title>
    <link rel="stylesheet" type="text/css" href="__ROOT__/admin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/admin/css/admin.css"/>
</head>
<body>
<div class="main-layout" id='main-layout'>
    <!--侧边栏-->
    <div class="main-layout-side">
        <div style="width: 100%;height: 60px;line-height: 60px;color:#FFF;font-size: 24px;text-align: center;background:#8bcffa;">
            管理员后台
        </div>
        <ul class="layui-nav layui-nav-tree" lay-filter="leftNav">

            <li class="layui-nav-item">
                <a href="javascript:;" data-url="{:url('Service/index')}" data-id='1' data-text="客服管理"><i class="iconfont">&#xe606;</i>客服管理</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" data-url="{:url('User/index')}" data-id='2' data-text="用户管理"><i class="iconfont">&#xe606;</i>用户管理</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" data-url="{:url('developer/check')}" data-id='3' data-text="技术审核"><i class="iconfont">&#xe606;</i>技术审核
                    <span style="color: red" id="dai"></span></a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" data-url="{:url('developer/index')}" data-id='4' data-text="技术管理"><i class="iconfont">&#xe606;</i>技术管理</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" data-url="{:url('tag/index')}" data-id='5' data-text="标签管理"><i class="iconfont">&#xe606;</i>标签管理</a>
            </li>

        </ul>
    </div>
    <!--右侧内容-->
    <div class="main-layout-container">
        <!--头部-->
        <div class="main-layout-header">
            <div class="menu-btn" id="hideBtn">
                <a href="javascript:;">
                    <span class="iconfont">&#xe60e;</span>
                </a>
            </div>
            <ul class="layui-nav" lay-filter="rightNav">

                <li class="layui-nav-item">

                </li>
                <li class="layui-nav-item"><a href="{:url('Login/loginout')}">退出</a></li>
            </ul>
        </div>
        <!--主体内容-->
        <div class="main-layout-body">
            <!--tab 切换-->
            <div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
                <ul class="layui-tab-title">
                    <li class="layui-this welcome">后台主页</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show" style="background: #f5f5f5;">
                        <!--1-->
                        <iframe src="{:url('index/welcome')}" width="100%" height="100%" name="iframe" scrolling="auto"
                                class="iframe" framborder="0"></iframe>
                        <!--1end-->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--遮罩-->
    <div class="main-mask">

    </div>
</div>
<script type="text/javascript" src="__ROOT__/static/assets/js/jquery-2.1.4.min.js"></script>
<script src="__ROOT__/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="__ROOT__/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="__ROOT__/admin/js/main.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">

    $(function(){
        // 开启定时任务，时间间隔为3000 ms。
        setInterval(function(){
            getData();
        }, 10000);
        function getData() {
            var url = "{:url('developer/check_new')}";
            data = {};
            $.post(
                url,
                data,
                function (s) {
                    if(s.status ==1){
                         if(s.data == 0){
                             $("#dai").text('');
                         }else {
                             $("#dai").text('+'+s.data);
                         }

                    }else{

                    }
                }
                ,'JSON');
        }
    });

</script>
</body>
</html>